<template>
	<view class="all-main">
		<view class="main">
			<view class="lists primarys" @click="toPages(1)">
				我的终端
			</view>
			<view class="lists successs" @click="toPages(2)">
				默认费率设置
			</view>
			<view class="lists warnings" @click="toPages(3)">
				调价费率设置
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userinfo: {}
			}
		},
		onLoad() {
			this.userinfo = uni.getStorageSync('userinfo');
		},
		methods: {
			// 跳转页面
			toPages(type) {
				var paths = 'terminal'
				if (type == 2) {
					paths = 'defaultTerminal'
				} else if (type == 3) {
					paths = 'adjustPriceTerminal'
				}
				uni.navigateTo({
					url: '/pages/version5/index/manage/rate/' + paths
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #f3f4f6;
	}
	
	.all-main {
		padding: 30rpx;
		.main {
			.lists {
				margin-bottom: 30rpx;
				background-color: #ffffff;
				padding: 100rpx;
				border-radius: 16rpx;
				text-align: center;
				font-weight: bold;
			}
			
			.primarys {
				background-color: #2979ff;
				color: #ffffff;
			}
			
			.successs {
				background-color: #19be6b;
				color: #ffffff;
			}
			
			.warnings {
				background-color: #ff9900;
				color: #ffffff;
			}
		}
	}
</style>